package top.healthylife.gateway.platform.kjt.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.kjt.api.dto.KjtReqDto;
import top.healthylife.gateway.platform.kjt.api.dto.KjtResDto;
import top.healthylife.gateway.platform.kjt.api.util.KjtPostUtil;

/**
 * @author GaoZexi
 * @datetime 2020/3/20 13:19
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20,apiName = "快捷通请求接口", info = "请求快捷通接口")
public class KjtApi implements ParentFace<KjtReqDto, KjtResDto> {

    @Override
    public KjtResDto execute(KjtReqDto kjtReqDto) throws Exception {
        //可直接通过工具类获取这个对象
        return KjtPostUtil.selectKjt(kjtReqDto,KjtPostUtil.systemConfigInfo(kjtReqDto),KjtResDto.class);
    }

}
